//
//  IntroductionViewController.m
//  Elimination
//
//  Created by A-01 on 2020/7/1.
//  Copyright © 2020 A-01. All rights reserved.
//

#import "IntroductionViewController.h"

@interface IntroductionViewController ()

@property (nonatomic, weak)UILabel * titleLabel;
@property (nonatomic, weak)UILabel * showLabel;

@end

@implementation IntroductionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self setupUI];
}


- (void)setupUI{
    
    UILabel * titleLabel = [UILabel new];
    
    titleLabel.text = @"Introduction";
    titleLabel.textColor = ZRWhiteColor;
    titleLabel.font = [UIFont fontWithName:@"FZSEJW--GB1-0" size:30];
    
    self.titleLabel = titleLabel;
    
    [self.view addSubview:self.titleLabel];
    
    
    UILabel * showLabel = [UILabel new];
    
    showLabel.text = @"This is a simple leisure game, eliminate the application of different colors of different graphics, simple and easy to play colorful, no matter at any time you can easily play for a while, come and experience it together! \n Rules:\n The game will continue to appear color graphics, you need to drag with the top of the same color graphics, so that it overlaps to eliminate, all kinds of color graphics will continue to change, to try your score.";
    showLabel.textColor = ZRWhiteColor;
    showLabel.font = [UIFont fontWithName:@"FZSEJW--GB1-0" size:17];
    showLabel.numberOfLines = 0;
        
    self.showLabel = showLabel;
        
    [self.view addSubview:self.showLabel];
}


- (void)viewDidLayoutSubviews{
    
    [super viewDidLayoutSubviews];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view);
        make.top.mas_equalTo(self.view).offset(40);
    }];
    
    [self.showLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.centerY.mas_equalTo(self.view);
        make.width.mas_equalTo(510);
    }];
}

@end
